class Mailer < ActionMailer::Base
	def new_order(order)
		recipients 	Settings.config.emails
    subject 		"[SITE] Заявка на кредит"
    from				Settings.config.from 
 		content_type 	"text/html"
		sent_on 			Time.now
    body :order => order
	end
	
	def new_question(name, phone, email, message)
		recipients 	Settings.config.emails
    subject 		"[SITE] Вопрос специалисту"
    from				email
 		content_type 	"text/html"
		sent_on 			Time.now
    body :name => name, :phone=>phone, :email=>email, :message=>message    
	end
end
